<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 	<title>${title }</title>
	<!--自定义index样式-->
	<%-- <link rel="stylesheet" href="${ctx }/static/styles/basic/basic.css"></link>
	<link rel="stylesheet" href="${ctx }/static/styles/edit/box.css"></link> --%>
	
	<link rel="stylesheet" href="${ctx }/static/styles/basic/basic.css"></link>
	<link rel="stylesheet" href="${ctx }/static/styles/edit/tableStyle.css"></link>
	<!--js库-->
	<%@ include file="/static/commons/jquery-easyui.jsp" %>
	<script type="text/javascript" src="${ctx}/static/scripts/set_select.js"></script>
	<script type="text/javascript" src="${ctx}/static/scripts/WdatePicker/WdatePicker.js"></script>
	<script type="text/javascript">
		var headers = {};
		headers['__RequestVerificationToken'] = "${RequestVerificationToken}";
	</script>
  </head>
  
  <body style="padding-bottom:8px;">
  		<c:set var="disabled" value=""></c:set>
  		<c:set var="ifSelect" value=""></c:set>
  		<c:if test="${not empty view}">
  			<c:set var="disabled" value="disabled"></c:set>
  			<c:set var="ifSelect" value="false"></c:set>
  		</c:if>
  		<form id="editForm" action="${ctx}/equipment/save" method="post">
  			<input type="hidden" value="${obj.equ_id}" id="equId" name="p_equId" />
	  			<table class="table-ltr">
	  				<tbody>
		  				<%-- <td>队号：</td>
						<td><input type="text" id="teamNo" name="p_teamNo" value="${obj.team_no }" ${disabled } maxLength="50"></input></td> --%>
		  				<tr>
			  				<td class="non-empty">设备编号：</td>
			  				<td><input type="text" id="equCode" name="p_equCode" value="${obj.equ_code }" ${disabled } maxLength="20" /></td>
			  				<td class="non-empty">设备名称：</td>
			  				<td><input type="text" id="equName" name="p_equName" value="${obj.equ_name }" ${disabled } maxLength="20" /></td>
		  				</tr>
	
					<tr>
						<td class="non-empty">部门名称：</td>
						<td><input type="text" id="equDept" name="p_equDept" value="${obj.equ_dept }" ${disabled } maxLength="20" /></td>
						<td class="non-empty">生产厂家：</td>
						<td><input type="text" id="equManufactor" name="p_equManufactor" value="${obj.equ_manufactor }" ${disabled } maxLength="20" /></td>
					</tr>
					<tr>
						<td class="non-empty">型号规格：</td>
						<td><input type="text" id="equModel" name="p_equModel" value="${obj.equ_model }" ${disabled } maxLength="20" /></td>
						<td class="non-empty">计量日期：</td>
						<td><input type="text" id="equDate" name="p_equDate" value="${obj.equ_date }" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true})" ${disabled } class="Wdate" /></td>
					</tr>
					<tr>
						<td class="non-empty">计量周期（月）：</td>
						<td><input type="text" id="equCycle" name="p_equCycle" value="${obj.equ_cycle }" ${disabled } maxLength="2" /></td>
						<td class="non-empty">证书编号：</td>
						<td><input type="text" id="certCode" name="p_certCode" value="${obj.cert_code }" ${disabled } maxLength="20" /></td>
					</tr>
					<tr>
						<td class="non-empty">测量范围：</td>
						<td><input type="text" id="measureScope" name="p_measureScope" value="${obj.measure_scope }" ${disabled } maxLength="50" /></td>
						<td class="non-empty">不确定度/标准度等级/最大允许误差：</td>
						<td><input type="text" id="equMemo" name="p_equMemo" value="${obj.equ_memo }" ${disabled } maxLength="50" /></td>
					</tr>
					<tr>
						<td class="non-empty">设备类型：</td>
						<td><vvise:select id="deviceType" name="p_deviceType" sqlname="getCodeData" sqlparam="device_type" defval="${obj.device_type}" ifSelect="${ifSelect}" /></td>
						<td>排序：</td>
						<td><input type="text" id="orderNo" name="p_orderNo" value="${obj.order_no }" ${disabled } maxLength="10" /></td>
					</tr>
					<tr>
						<td>备注：</td>
						<td colspan="3"><input type="text" id="remark" name="p_remark" value="${obj.remark }" ${disabled } maxLength="100" /></td>
					</tr>
				</tbody>
  			</table>
  			<%-- 
  			
  			<div class="box">
	  			<table cellspacing="0" cellpadding="0">
	  				<tbody>
						<tr>
							<td class="message">
								<p><span>*</span>设备编号：</p>
							</td>
							<td>
								<input type="text" id="equCode" name="p_equCode" value="${obj.equ_code }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;" />
							</td>
							<td class="message">
								<p><span>*</span>设备名称：</p>
							</td>
							<td>
								<input type="text" id="equName" name="p_equName" value="${obj.equ_name }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>部门名称：</p>
							</td>
							<td>
								<input type="text" id="equDept" name="p_equDept" value="${obj.equ_dept }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;" />
							</td>
							<td class="message">
								<p><span>*</span>生产厂家：</p>
							</td>
							<td>
								<input type="text" id="equManufactor" name="p_equManufactor" value="${obj.equ_manufactor }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>型号规格：</p>
							</td>
							<td>
								<input type="text" id="equModel" name="p_equModel" value="${obj.equ_model }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;" />
							</td>
							<td class="message">
								<p><span>*</span>计量日期：</p>
							</td>
							<td>
								<input type="text" id="equDate" name="p_equDate" value="${obj.equ_date }"
									onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true})"  ${disabled } 
									class="wd170 Wdate" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>计量周期（月）：</p>
							</td>
							<td>
								<input type="text" id="equCycle" name="p_equCycle" value="${obj.equ_cycle }"
									class="wd170 " ${disabled } maxLength="2" style="width: 100%;" />
							</td>
							<td class="message">
								<p><span>*</span>证书编号：</p>
							</td>
							<td>
								<input type="text" id="certCode" name="p_certCode" value="${obj.cert_code }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>测量范围：</p>
							</td>
							<td>
								<input type="text" id="measureScope" name="p_measureScope" value="${obj.measure_scope }"
									class="wd170 " ${disabled } maxLength="50" style="width: 100%;" />
							</td>
							<td class="message">
								<p><span>*</span>不确定度/标准度等级/最大允许误差：</p>
							</td>
							<td>
								<input type="text" id="equMemo" name="p_equMemo" value="${obj.equ_memo }"
									class="wd170 " ${disabled } maxLength="50" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>设备类型：</p>
							</td>
							<td>
  								<vvise:select id="deviceType" name="p_deviceType" sqlname="getCodeData" sqlparam="device_type" 
			            			className="wd170" width="99%" defval="${obj.device_type}" ifSelect="${ifSelect}"
			            			onchange="changeSelect('${ctx}/common/getSelectOptions?sqlname=getDeviceName&sqlparam='+this.value, 'deviceId');"/>
							</td>
							<td class="message">
								<p>设备名称：</p>
							</td>
							<td>
  								<vvise:select id="deviceId" name="p_deviceId" sqlname="getDeviceName" sqlparam="${empty obj.device_type ? 4 : obj.device_type}" 
			            			className="wd170" width="99%" defval="${obj.device_id_}" ifSelect="${ifSelect}"/>
							</td>
						</tr>
						<tr>
							<td class="message">
								<p>排序：</p>
							</td>
							<td>
								<input type="text" id="orderNo" name="p_orderNo" value="${obj.order_no }"
									class="wd170 " ${disabled } maxLength="50" style="width: 100%;" />
							</td>
							<td></td>
							<td></td>
						</tr>
						<tr>
							<td class="message">
								<p>备注：</p>
							</td>
							<td colspan="3">
								<input type="text" id="remark" name="p_remark" value="${obj.remark }"
									class="wd170 " ${disabled } maxLength="100" style="width: 100%;" />
							</td>
						</tr>
					</tbody>
	  			</table>
	  		</div> --%>
        </form>
  </body>
</html>